Is it possible to implement a `trap' for GNU make
Posted
by Cyrus
on Stack Overflow
See other posts from Stack Overflow
or by Cyrus
Published on 2009-06-10T07:06:54Z
Indexed on
2010/04/13
18:32 UTC
Read the original article
Hit count: 251
I'm wondering if there's a way to implement the similar functionality as you get in bash scripts using `trap', but for gmake, such that if the user presses CTRL-C, or if make itself fails, it can call a particular target or macro.
© Stack Overflow or respective owner